package co.baiku.boot.office.vo;

import org.apache.poi.ss.usermodel.Cell;

public class CellInfo {
    private Cell cell;
    private String filed;
    private Class<?> filedType;
    private String stringValue;
    private Object value;

    public CellInfo(Cell cell, String filed, Object value, Class<?> filedType) {
        this.cell = cell;
        this.filed = filed;
        this.filedType = filedType;
        this.value = value;
        this.stringValue = value != null ? value.toString() : null;
    }

    public Cell getCell() {
        return cell;
    }

    public void setCell(Cell cell) {
        this.cell = cell;
    }

    public String getFiled() {
        return filed;
    }

    public void setFiled(String filed) {
        this.filed = filed;
    }

    public Class<?> getFiledType() {
        return filedType;
    }

    public void setFiledType(Class<?> filedType) {
        this.filedType = filedType;
    }

    public String getStringValue() {
        return stringValue;
    }

    public void setStringValue(String stringValue) {
        this.stringValue = stringValue;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }
}
